home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Format CD 42
/
Amiga Format AFCD42 (Issue 126, Aug 1999).iso
/
-serious-
/
programming
/
arexx
/
rxcmanager
/
examples
/
cmload.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
1999-05-25
|
921b
|
48 lines
/* */
parse arg user
signal on break_c
l="rxcmanager.library";if ~show("L",l) then;if ~addlib(l,0,-30) then exit
l="rmh.library";if ~show("L",l) then;if ~addlib(l,0,-30) then exit
if user ~="" then do
userData = getUserData(user)
if userData="" then do
say "No data for user '"user"'"
exit
end
call CMLoad(userData)
end
num = CMFind("USER WWW","REC",,1)
if num=0 then do
say "No entry found for '"key"'"
exit
end
say "Found" num "entry:"
do i=0 to num-1
say
say "Type: " rec.i.Type
say "Name: " rec.i.Name
say "WWW: " rec.i.WWW
say "Comment: " rec.i.Comment
if rec.i.Type="WWW" then say "WebMaster:" rec.i.WebMaster
say "EMail: " rec.i.EMail
end
exit
getUserData:
parse arg user
CMPath = GetVar("vapor/cmanager_path")
if CMPath~="" then do
userData=AddPart(AddPart(PathPart(CMPath),user),user)".data"
if exists(userData) then return userData
end
return ""
break_c:
exit